package com.lzy.managersystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzy.managersystem.pojo.Role;

import java.util.List;

/**
* @author qq619
* @description 针对表【sys_role】的数据库操作Service
* @createDate 2022-07-10 20:41:49
*/
public interface RoleService extends IService<Role> {
    //查询所有用户
    List<Role> getAllUser();

    //插入用户信息
    int insterUser(Role role);

    //根据id删除用户信息
    int deleteUser(Integer id);

    //更新用户
    int updateUser(Role role);

    int deleteBatchUser(List<Integer> ids);

    void setRoleMenu(Integer roleId, List<Integer> menuIds);

    List<Integer> getRoleMenu(Integer roleId);

}
